package com.reder.practice.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 关注和粉丝表实体类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/20 16:05:05</p>
 */
@ApiModel("关注和粉丝表实体类")
public class Follower {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键，后台自动填充", example = "0")
    private Long id;

    /**
     * 用户主键，这是被关注的用户
     */
    @ApiModelProperty(value = "用户主键，这是被关注的用户", example = "0")
    private Long userId;

    /**
     * 用户主键，这是关注的用户，也就是 user_id 的粉丝
     */
    @ApiModelProperty(value = "用户主键，这是关注的用户，也就是 user_id 的粉丝", example = "0")
    private Long followerId;

    /**
     * 关注时间
     */
    @ApiModelProperty("关注时间，后台自动填充")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getFollowerId() {
        return followerId;
    }

    public void setFollowerId(Long followerId) {
        this.followerId = followerId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", followerId=").append(followerId);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}